package com.hedgehoglab.fixxclipse.treeviewer.model;

public class Model {
	private Fixx parent;
	protected IDeltaListener listener = NullDeltaListener.getSoleInstance();

	
	public void addListener(IDeltaListener listener) {
		this.listener = listener;
	}
	
	public void removeListener(IDeltaListener listener) {
		if(this.listener.equals(listener)) {
			this.listener = NullDeltaListener.getSoleInstance();
		}
	}

	public void setParent(Fixx parent) {
		this.parent = parent;
	}

	public Fixx getParent() {
		return parent;
	}

	
}
